<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="userInfoList.title"/></title>
    <meta name="heading" content="<fmt:message key='userInfoList.heading'/>"/>
    <meta name="menu" content="UserInfoMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/userInfoes" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}"
           placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editUserInfo"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="userInfoes" class="table" requestURI="" id="userInfoList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editUserInfo" media="html"
        paramId="id" paramProperty="id" titleKey="userInfo.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="userInfo.id"/>
    <display:column property="address" sortable="true" titleKey="userInfo.address"/>
    <display:column property="avatar" sortable="true" titleKey="userInfo.avatar"/>
    <display:column property="birthDay" sortable="true" titleKey="userInfo.birthDay"/>
    <display:column property="birthMonth" sortable="true" titleKey="userInfo.birthMonth"/>
    <display:column property="birthType" sortable="true" titleKey="userInfo.birthType"/>
    <display:column property="birthYear" sortable="true" titleKey="userInfo.birthYear"/>
    <display:column property="blood" sortable="true" titleKey="userInfo.blood"/>
    <display:column property="city" sortable="true" titleKey="userInfo.city"/>
    <display:column property="code" sortable="true" titleKey="userInfo.code"/>
    <display:column property="communication" sortable="true" titleKey="userInfo.communication"/>
    <display:column property="constellation" sortable="true" titleKey="userInfo.constellation"/>
    <display:column property="country" sortable="true" titleKey="userInfo.country"/>
    <display:column property="deptAddress" sortable="true" titleKey="userInfo.deptAddress"/>
    <display:column property="deptName" sortable="true" titleKey="userInfo.deptName"/>
    <display:column property="nickName" sortable="true" titleKey="userInfo.nickName"/>
    <display:column property="phone" sortable="true" titleKey="userInfo.phone"/>
    <display:column property="position" sortable="true" titleKey="userInfo.position"/>
    <display:column property="profession" sortable="true" titleKey="userInfo.profession"/>
    <display:column property="province" sortable="true" titleKey="userInfo.province"/>
    <display:column property="sensation" sortable="true" titleKey="userInfo.sensation"/>
    <display:column property="updateTime" sortable="true" titleKey="userInfo.updateTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="userInfoList.userInfo"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="userInfoList.userInfoes"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="userInfoList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="userInfoList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="userInfoList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editUserInfo"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("userInfoList");
</script>
